#!/bin/bash
sed -i 's@^\(deb.*stable main\)$@#\1\ndeb https://mirrors.tuna.tsinghua.edu.cn/termux/apt/termux-main stable main@' $PREFIX/etc/apt/sources.list
apt update && apt upgrade
apt install openssh
# 配置ssh—省略
apt install proot proot-distro -y
proot-distro install debian
echo "sshd\nproot-distro login debian"

# debian
cp /etc/apt/sources.list /etc/apt/oldsources.list
echo " deb http://mirrors.ustc.edu.cn/debian/ bullseye main non-free contrib
    deb-src http://mirrors.ustc.edu.cn/debian/ bullseye main non-free contrib
    deb http://mirrors.ustc.edu.cn/debian-security/ bullseye-security main 
    deb-src http://mirrors.ustc.edu.cn/debian-security/ bullseye-security main
    deb http://mirrors.ustc.edu.cn/debian/ bullseye-updates main non-free contrib
    deb-src http://mirrors.ustc.edu.cn/debian/ bullseye-updates main non-free contrib
    deb http://mirrors.ustc.edu.cn/debian/ bullseye-backports main non-free contrib
    deb-src http://mirrors.ustc.edu.cn/debian/ bullseye-backports main non-free contrib" > /etc/apt/sources.list


